Template:Verbtable: Difference between revisions
(Undo revision 185003 by GS4-XERAPHINA (talk)) |
(updated template to account for new set width on the tables, including examples of setup.) |
||
Line 1: | Line 1: | ||
<includeonly>border="2" cellpadding="4" style="margin: 10px 1px 10px 10px; clear:both; background:#E6ECFA; border: 1px #aaa solid; border-collapse: collapse;"</includeonly> |
<includeonly>border="2" cellpadding="4" style="margin: 10px 1px 10px 10px; clear:both; background:#E6ECFA; border: 1px #aaa solid; border-collapse: collapse; width: {{{1}}}%"</includeonly> |
||
<noinclude>This template can be used to record [[verb]] command actions in a table format. This is a supplemental template to be used with the [[verbinfo]] template. |
<noinclude>This template can be used to record [[verb]] command actions in a table format. This is a supplemental template to be used with the [[verbinfo]] template. |
||
In order to create the heading(s) for the table, copy and paste this code into the table in the line following the template inclusion (see example). |
In order to create the heading(s) for the table, copy and paste this code into the table in the line following the template inclusion (see [[#Example|example]]). |
||
<pre{{log2}}> |
<pre{{log2}}> |
||
<nowiki>{{verbtableheader}}</nowiki> |
<nowiki>{{verbtableheader}}</nowiki> |
||
</pre> |
</pre> |
||
===Update=== |
|||
As of 1/1/2023, the formatting has been updated to have a set table width to be used on both verb ( <nowiki>{{verbtable|80}}</nowiki> ) and item script ( <nowiki>{{verbtable|100}}</nowiki> ) pages. This is done to allow a fixed width formatting on the tables, and will automatically shrink or expand based on the size of the page in the browser. Additionally, when using these updated parameters, additional code work will be needed to set the width of the cells. The examples below demonstrate a way to set up the percentages so the cells are uniform in their formatting. Bear in mind these are examples only, and may need to be adjusted based on how many columns the table itself may hold. Additionally, this update to the template will not directly affect pages already created and using these templates, so there is no immediate need to update the pages to conform to this format. |
|||
===Example=== |
===Example=== |
||
The below example is what would be used for [[:Category:Verbs | VERB]] pages only. It is set up in a way to take into consideration that the verb page is for a single verb, thus not indicating a need for a verb entered into the table. |
The below example is what would be used for [[:Category:Verbs | VERB]] pages only. It is set up in a way to take into consideration that the verb page is for a single verb, thus not indicating a need for a verb entered into the table. |
||
<pre{{log2}}><nowiki>{| {{verbtable}} |
<pre{{log2}}><nowiki>{| {{verbtable|80}} |
||
|- {{verbtableheader}} |
|- {{verbtableheader|80}} |
||
! scope="col" |
! scope="col" | Style |
||
! scope="col"|First |
! scope="col" style="width: 45%" | First |
||
! scope="col"|Third |
! scope="col" style="width: 45%" | Third |
||
|- |
|- |
||
! scope="row" role="rowheader"|Style |
! scope="row" role="rowheader"|Style |
||
Line 21: | Line 24: | ||
|}</nowiki></pre> |
|}</nowiki></pre> |
||
{| {{verbtable}} |
{| {{verbtable|80}} |
||
|- style="background:#00004C; vertical-align: top; font-size: larger; color:white;" |
|- style="background:#00004C; vertical-align: top; font-size: larger; color:white;" |
||
! scope="col" style="width:5em;"|Style |
! scope="col" style="width:5em;"|Style |
||
! scope="col"|First |
! scope="col" style="width: 45%" | First |
||
! scope="col"|Third |
! scope="col" style="width: 45%" | Third |
||
|- |
|- |
||
! scope="row" role="rowheader"|Style |
! scope="row" role="rowheader"|Style |
||
Line 32: | Line 35: | ||
|} |
|} |
||
The below example is what |
The below example is what may be used for [[:Category:Items | item]] script pages only, dependent on specific variables in place. It is set up in a way to take into consideration that scripted items have multiple verbs available for their use, however not all fields shown in the example below may be necessary. For more information on item pages, see [[Help:Item scripts]]. |
||
⚫ | |||
'''''PLEASE NOTE:''' Due to the way that the item script pages are set up, the verbtables will not expand to the full page. They will only expand to the maximum width allowed within the format, which is approximately 80% of the page. |
|||
⚫ | |||
|- {{verbtableheader}} |
|- {{verbtableheader}} |
||
! scope="col" style="width:5em;"|Verb |
! scope="col" style="width:5em;"|Verb |
||
! scope="col" style="width:5em;"|Style <!-- (Only if applicable. Additional options would be Demeanor, Location, Climate, etc. Essentially, modifiers to the verbs.) --> |
! scope="col" style="width:5em;"|Style <!-- (Only if applicable. Additional options would be Demeanor, Location, Climate, etc. Essentially, modifiers to the verbs.) --> |
||
! scope="col"|First |
! scope="col" style="width: 30%" | First |
||
! scope="col"|Second (Only if applicable) |
! scope="col" style="width: 30%" | Second (Only if applicable) |
||
! scope="col"|Third |
! scope="col" style="width: 30%" | Third |
||
|- |
|- |
||
! scope="row" role="rowheader"|VERB |
! scope="row" role="rowheader"|VERB |
||
Line 48: | Line 53: | ||
|}</nowiki></pre> |
|}</nowiki></pre> |
||
{| {{verbtable}} |
{| {{verbtable|90}} |
||
|- {{verbtableheader}} |
|- {{verbtableheader}} |
||
! scope="col" style="width:5em;"|Verb |
! scope="col" style="width:5em;"|Verb |
||
! scope="col" style="width:5em;"|Style |
! scope="col" style="width:5em;"|Style |
||
! scope="col"|First |
! scope="col" style="width: 30%" | First |
||
! scope="col"|Second |
! scope="col" style="width: 30%" | Second |
||
! scope="col"|Third |
! scope="col" style="width: 30%" | Third |
||
|- |
|- |
||
! scope="row" role="rowheader"|VERB |
! scope="row" role="rowheader"|VERB |
Revision as of 10:55, 1 January 2023
This template can be used to record verb command actions in a table format. This is a supplemental template to be used with the verbinfo template.
In order to create the heading(s) for the table, copy and paste this code into the table in the line following the template inclusion (see example).
{{verbtableheader}}
Update
As of 1/1/2023, the formatting has been updated to have a set table width to be used on both verb ( {{verbtable|80}} ) and item script ( {{verbtable|100}} ) pages. This is done to allow a fixed width formatting on the tables, and will automatically shrink or expand based on the size of the page in the browser. Additionally, when using these updated parameters, additional code work will be needed to set the width of the cells. The examples below demonstrate a way to set up the percentages so the cells are uniform in their formatting. Bear in mind these are examples only, and may need to be adjusted based on how many columns the table itself may hold. Additionally, this update to the template will not directly affect pages already created and using these templates, so there is no immediate need to update the pages to conform to this format.
Example
The below example is what would be used for VERB pages only. It is set up in a way to take into consideration that the verb page is for a single verb, thus not indicating a need for a verb entered into the table.
{| {{verbtable|80}} |- {{verbtableheader|80}} ! scope="col" | Style ! scope="col" style="width: 45%" | First ! scope="col" style="width: 45%" | Third |- ! scope="row" role="rowheader"|Style | First Person View | Third Person View |}
Style | First | Third |
---|---|---|
Style | First Person View | Third Person View |
The below example is what may be used for item script pages only, dependent on specific variables in place. It is set up in a way to take into consideration that scripted items have multiple verbs available for their use, however not all fields shown in the example below may be necessary. For more information on item pages, see Help:Item scripts.
PLEASE NOTE: Due to the way that the item script pages are set up, the verbtables will not expand to the full page. They will only expand to the maximum width allowed within the format, which is approximately 80% of the page.
{| {{verbtable|90}} |- {{verbtableheader}} ! scope="col" style="width:5em;"|Verb ! scope="col" style="width:5em;"|Style <!-- (Only if applicable. Additional options would be Demeanor, Location, Climate, etc. Essentially, modifiers to the verbs.) --> ! scope="col" style="width: 30%" | First ! scope="col" style="width: 30%" | Second (Only if applicable) ! scope="col" style="width: 30%" | Third |- ! scope="row" role="rowheader"|VERB ! scope="row" role="rowheader"|Style | First Person View | Second Person View | Third Person View |}
Verb | Style | First | Second | Third |
---|---|---|---|---|
VERB | Style | First Person View | Second Person View | Third Person View |