Difference between revisions of "Template:CharacterInfobox"
Line 27: | Line 27: | ||
|data13 = {{#if: {{{DateOfBirth|}}} | {{#time: {{{DateFormatString|Y-m-d}}} | {{{DateOfBirth|}}} }} }} | |data13 = {{#if: {{{DateOfBirth|}}} | {{#time: {{{DateFormatString|Y-m-d}}} | {{{DateOfBirth|}}} }} }} | ||
|label14 = Age | |label14 = Age | ||
|data14 = {{#if: {{{DateOfBirth|}}} | {{#time: Y | {{{DateOfBirth|}}} }} | |data14 = {{#if: {{{DateOfBirth|}}} | {{Age|Year={{#time: Y | {{{DateOfBirth|}}} }}|Month={{#time:m | {{{DateOfBirth|}}} }}|Day={{#time:d | {{{DateOfBirth|}}} }} }} }} | ||
}} | }} | ||
Line 54: | Line 54: | ||
|Bonuses=0 | |Bonuses=0 | ||
|}} <!-- The above will automatically add +2 CDP for each AAR your character is tagged in. You can note expenses and any bonus CDP you gain above to adjust your current CDP total. --> | |}} <!-- The above will automatically add +2 CDP for each AAR your character is tagged in. You can note expenses and any bonus CDP you gain above to adjust your current CDP total. --> | ||
|DateOfBirth= <!-- format as YYYY-MM-DD --> | |DateOfBirth= <!-- format as YYYY-MM-DD. Other formats may work, but use at your own risk.--> | ||
|DateFormatString= <!-- Can safely be left blank, use at your own risk --> | |||
|FolderLink=[Drive URL Link] | |FolderLink=[Drive URL Link] | ||
|Priority=AACEE | |Priority=AACEE | ||
|DateOfFirstRun= <!-- format as YYYY-MM-DD --> | |DateOfFirstRun= <!-- format as YYYY-MM-DD. Other formats may work, but use at your own risk.--> --> | ||
|MundAwakeEmerge= <!-- 0 for mundane, 1 for mage/mysad, 2 for adept, 3 for techno --> | |MundAwakeEmerge= <!-- 0 for mundane, 1 for mage/mysad, 2 for adept, 3 for techno --> | ||
Revision as of 01:09, 6 November 2024
{{CharacterInfobox |YourWikiUsername= |Image= [[File:Placeholder.png|200px]] <!-- change the file to match your uploaded picture --> |Archetype= |Shortblurb1= |Shortblurb2= |Shortblurb3= |OwnersRedditName= |OwnersDiscordName= |Metatype= <!-- the base metatype --> |Metavariant= <!-- the metavariant, leave blank if none --> |StreetCred= |Noteriety= |PublicAwareness= |TitlesAndAwards= |CDP={{CDP |Expenses=0 |Bonuses=0 |}} <!-- The above will automatically add +2 CDP for each AAR your character is tagged in. You can note expenses and any bonus CDP you gain above to adjust your current CDP total. --> |DateOfBirth= <!-- format as YYYY-MM-DD. Other formats may work, but use at your own risk.--> |DateFormatString= <!-- Can safely be left blank, use at your own risk --> |FolderLink=[Drive URL Link] |Priority=AACEE |DateOfFirstRun= <!-- format as YYYY-MM-DD. Other formats may work, but use at your own risk.--> --> |MundAwakeEmerge= <!-- 0 for mundane, 1 for mage/mysad, 2 for adept, 3 for techno --> <!-- Delete from here if not infected --> |Infected={{InfectedPowers <!-- Leave this line alone, enter the month, day, and year of the first run after infection below in numeric format. Leave blank if you aren't infected --> |Month= |Day= |Year= |Owned= |}} |Strain1Essence={{Strain1EssenceTracker |EssenceLost=0 |EssenceDrained=0 |ActivePowersUsed=0 |EssenceExpansion=0 |}}<!-- Delete to here if not infected --> <!-- Delete from here if not a drake --> |Drake={{DrakePowers |Month= |Day= |Year= |Major=0 |Minor=0 |}}<!-- Delete to here if not a drake --> |CharacterInfoboxData=1 <!-- Do not change this line. Seriously. Don't even think about it. Just leave it be and WALK AWAY. --> }}
This entire bit needs to be re-written
This template is intended as a meta template: a template used for constructing other templates. Note: In general, it is not meant for use directly in an article, but can be used on a one-off basis if required. ((Help:Infobox)) contains an introduction about the recommended content and design of infoboxes; ((Wikipedia:Manual of Style/Infoboxes)) contains additional style guidelines. See ((WP:List of infoboxes)) and ((:Category:Infobox templates)) for lists of prepared topic-specific infoboxes.
Full doccumentation can be found here.
Usage
Subboxes
An alternative method for embedding is to use Template:Para, which removes the outer border from the infobox, but preserves the interior structure. One feature of this approach is that the parent and child boxes need not have the same structure, and the label and data fields are not aligned between the parent and child boxes because they are not in the same parent table.
Main 1 | |||||||
---|---|---|---|---|---|---|---|
Main 2 | |||||||
| |||||||
| |||||||
Label 5 | Data 5 | ||||||
Main 6 |
{{CharacterInfobox | headerstyle = background-color:#eee; | labelstyle = background-color:#eee; | header1 = Main 1 | header2 = Main 2 | data3 = {{Infobox | subbox = yes | headerstyle = background-color:#ccc; | labelstyle = background-color:#ddd; | header1 = Sub 3-1 | header2 = Sub 3-2 | label3 = Label 3-3 | data3 = Data 3-3 }} | data4 = {{Infobox | subbox = yes | labelstyle = background-color:#ccc; | label1 = Label 4-1 | data1 = Data 4-1 }} | label5 = Label 5 | data5 = Data 5 | header6 = Main 6 }}
Full blank syntax
(Note: there is no limit to the number of possible rows; only 20 are given below since infoboxes larger than that will be relatively rare. Just extend the numbering as needed. The microformat "class" parameters are also omitted as they are not commonly used.)
{{CharacterInfobox | name = {{subst:PAGENAME}} | child = {{{child|}}} | subbox = {{{subbox|}}} | italic title = {{{italic title|no}}} | bodystyle = | titlestyle = | abovestyle = | subheaderstyle = | title = | above = | subheader = | imagestyle = | captionstyle = | image = | caption = | image2 = | caption2 = | headerstyle = | labelstyle = | datastyle = | header1 = | label1 = | data1 = | header2 = | label2 = | data2 = | header3 = | label3 = | data3 = | header4 = | label4 = | data4 = | header5 = | label5 = | data5 = | header6 = | label6 = | data6 = | header7 = | label7 = | data7 = | header8 = | label8 = | data8 = | header9 = | label9 = | data9 = | header10 = | label10 = | data10 = | header11 = | label11 = | data11 = | header12 = | label12 = | data12 = | header13 = | label13 = | data13 = | header14 = | label14 = | data14 = | header15 = | label15 = | data15 = | header16 = | label16 = | data16 = | header17 = | label17 = | data17 = | header18 = | label18 = | data18 = | header19 = | label19 = | data19 = | header20 = | label20 = | data20 = | belowstyle = | below = }}
Infoboxes and user style
Users can have ((WP:User style|user CSS)) that hides any infoboxes in their own browsers.
To hide all infoboxes, add the following to ((Special:MyPage/common.css)) (for all ((WP:Skin|skins)), or ((Special:MyPage/skin.css)) for just the current skin), on a line by itself: <source lang="css">.infobox { display: none; }</source>
Alternatively, you can add the following code to ((Special:MyPage/common.js|your common.js)) or into a browser user script that is executed by an extension like ((Greasemonkey)):
<source lang="js">$('.infobox').hide();</source>
Needs Special:Mypage/common.js options for:
- Making infoboxes collapsible
- Making them auto-collapsed
- Moving infoboxes to bottom of page
-->