version=pmwiki-2.1.beta14 ordered=1 urlencoded=1 agent=Mozilla/5.0 (Windows; U; Windows NT 5.1; ja; rv:1.8) Gecko/20051111 Firefox/1.5 author= ctime=1135403127 excerpt=%3cp>%0a%3c/p>%0a%3cp class='vspace'>%3c/p>%3ch2>Table basics%3c/h2>%0a%3ch2>テーブルの基本%3c/h2>%0a%3cp class='vspace'>%3c/p>%3cp>Note: There are 2 types of tables. Simple tables type and %3ca class='urllink' href='http://www.pmwiki.org/wiki/PmWiki/AdvancedTables' rel='nofollow'>Advanced tables%3c/a> type. These two types have different syntax inside the editor. Simple tables can be formatted using %3ca class='urllink' href='http://www.pmwiki.org/wiki/Cookbook/FormattingSimpleTables' rel='nofollow'>Cookbook:FormattingSimpleTables%3c/a>%0a%3c/p>%0a%3cp class='vspace'>%3c/p>%3cp>注意: テーブルは2種類あります。%0aシン host=211.131.112.228 name=PmWikiJa.シンプルなテーブル rev=1 targets=PmWikiJa.DocumentationIndex text=%25define=ex font-weight=bold%25%0a%0a!! Table basics%0a!!テーブルの基本%0a%0aNote: There are 2 types of tables. Simple tables type and [[http://www.pmwiki.org/wiki/PmWiki/AdvancedTables | Advanced tables]] type. These two types have different syntax inside the editor. Simple tables can be formatted using Cookbook:FormattingSimpleTables%0a%0a注意: テーブルは2種類あります。%0aシンプルなテーブルと[[http://www.pmwiki.org/wiki/PmWiki/AdvancedTables | 拡張テーブル]]です。%0a%0aSimple tables are created via use of the double pipe character: @@||@@. Lines beginning with this markup denote rows in a table; within such lines the double-pipe is used to delimit cells. In the examples below a border is added for illustration (the default is no border).%0a%0aシンプルなテーブルは%0a%0a%0a->%25ex%25 Basic table%0a(:markup:) [=%0a|| border=1%0a|| cell 1 || cell 2 || cell 3 ||%0a|| cell 1 || cell 2 || cell 3 ||=]%0a%0aHeader cells can be created by placing ! as the first character of a cell. Note that these are ''table headers'', not ''headings'', so it doesn't extend to !!, !!!, etc.%0a%0a->%25ex%25 Table headers%0a(:markup:) [=%0a|| border=1%0a||! cell 1 ||! cell 2 ||! cell 3 ||%0a|| cell 1 || cell 2 || cell 3 ||=]%0a%0aA table can have a caption, indicated by [@||!caption!||@]. Any caption must appear prior to other rows of the table.%0a%0a->%25ex%25 Table caption%0a(:markup:) [=%0a|| border=1%0a||! A special table !||%0a||! cell 1 ||! cell 2 ||! cell 3 ||%0a|| cell 1 || cell 2 || cell 3 ||=]%0a%0a%0a!! Formatting cell contents%0a%0aCell contents may be aligned left, centered, or aligned right. %0a* To left-align contents, place the cell contents next to the leading @@||@@.%0a* To center contents, add a space before and after the cell contents.%0a* To right-align contents, place a space before the cell contents and leave the cell contents next to the trailing @@||@@.%0a%0a->%25ex%25 Cell alignments%0a(:markup:) [=%0a|| border=1 width=100%25%0a||!cell 1 ||! cell 2 ||! cell 3||%0a||left-aligned || centered || right-aligned||=]%0a%0a->%25ex%25 Default cell alignments%0a(:markup:) [=%0a|| border=1 width=100%25%0a||!cell default||!cell left ||%0a||default-aligned||left-aligned ||=]%0a%0aNote that header and detail cells have different default alignments.%0a%0aTo get a cell to span multiple columns, follow the cell with empty cells.%0a(At present there is no markup for spanning rows.)%0a%0a->%25ex%25 Column spanning%0a(:markup:) [=%0a|| border=1 width=100%25%0a|| |||| right column ||%0a|| || middle column ||||%0a|| left column ||||||%0a|| left column || middle column || right column ||%0a=]%0a%0a!! Table attributes%0a%0aAny line that begins with [@||@] but doesn't have a closing [@||@] sets the ''table attributes'' for any tables that follow. These attributes can control the size and position of the table, borders, background color, and cell spacing. (In fact these are just standard HTML attributes that are placed in the %3ctable> tag.)%0a%0aUse the [@width=@] attribute to set a table's width, using either a percentage value or an absolute size.%0a%0a->%25ex%25 Table width%0a(:markup:) [=%0a|| border=1 width=100%25 %0a|| cell 1 || cell 2 || cell 3 ||%0a|| c1 || cellcellcellcell2 || cell 3 ||=]%0a%0aThe [@border=@] attribute sets the size of a table's borders.%0a%0a->%25ex%25 Bordered and borderless tables%0a(:markup:) [=%0a|| border=10 %0a||!cell 1 ||! cell 2 ||! cell 3||%0a||left-aligned || centered || right-aligned||%0a%0a|| border=0%0a||!cell 1 ||! cell 2 ||! cell 3||%0a||left-aligned || centered || right-aligned||=]%0a%0aUse [@align=center@], [@align=left@], and [@align=right@] to center, left, or right align a table. Note that [@align=left@] and [@align=right@] create a ''floating table'', such that text wraps around the table.%0a%0a->%25ex%25 Table alignment%0a(:markup:) [=%0a|| border=1 align=center%0a||!cell 1 ||! cell 2 ||! cell 3||%0a||left-aligned || centered || right-aligned||%0a%0a|| border=1 align=left%0a||!cell 1 ||! cell 2 ||! cell 3||%0a||left-aligned || centered || right-aligned||%0aNotice how text wraps to the right of a table using "align=left".=]%0a%0aThe [@bgcolor=@] attribute sets the background color for a table. At present there is no way to specify the color of individual rows or cells in a table (but see Cookbook:FormattingSimpleTables).%0a%0a(:markup:) [=%0a|| border=1 align=center bgcolor=yellow%0a||!cell 1 ||! cell 2 ||! cell 3||%0a||left-aligned || centered || right-aligned||=]%0a%0a!!Other examples%0a%0a->%25ex%25 A more complex table%0a(:markup:) [=%0a%25define=sp padding-right:1em font-weight:bold%25%0a|| border=1%0a|| [++Events Calendar++] ||||||||||%0a|| '''May 2005''' || '''June 2005''' || '''July 2005''' || '''August 2005''' || '''September 2005''' ||%0a||%25sp%25'''10'''%25%256:30 - 8:30 Big Meeting[[%3c%3c]][[%3c%3c]]%25sp%25'''17'''%25%257:00 - 8:30 Bigger Meeting[[%3c%3c]][[%3c%3c]]%25sp%25'''24'''%25%257:00 - 8:30 Biggest Meeting|| || || || ||%0a|| '''October 2005''' || '''November 2005''' || '''December 2005''' || '''January 2006''' || '''February 2006''' ||%0a|| || || || || ||%0a=]%0a%0a%25trail%25%3c%3c|[[DocumentationIndex]]|>>%0a time=1135403127