Editing
Template:Infobox/Base/doc
(section)
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
=== Subject template example === You can create an infobox template that itself calls {{tl|Infobox/Base}}. Indeed, this is the preferred way to use {{tl|Infobox/Base}}—you can create an infobox that employs a reusable, standard set of parameters for a common subject without needing to use complex wiki code or HTML. {{Infobox/Base | ibname = {{{name|}}} | ibtype = City | image = {{{image|}}} | bgcolor = #363 | fgcolor = #fff | paramname1 = Titles | param1 = {{{titles|}}} | paramname2 = Nation | param2 = {{{nation|}}} | paramname3 = Region | param3 = {{{region|}}} | paramname4 = Size | param4 = {{{size|}}} | paramname5 = Population | param5 = {{{population|}}} | paramname6 = Demographics | param6 = {{{demographics|}}} | paramname7 = Government | param7 = {{{government|}}} | paramname8 = Alignment | param8 = {{{alignment|}}} | paramname9 = Demonym | param9 = {{{natives|}}} | paramname10 = Adjective | param10 = {{{adjective|}}} | paramname11 = Ruler | param11 = {{{ruler|}}} | paramname12 = Leader | param12 = {{{leader|}}} | paramname13 = regionmap | param13 = {{{regionmap|}}} | paramname14 = source | param14 = {{{source|}}} | page = {{{page|}}} }} <pre> {{Infobox | ibname = {{{name|}}} | ibtype = City | image = {{{image|}}} | bgcolor = #363 | fgcolor = #fff | paramname1 = Titles | param1 = {{{titles|}}} | paramname2 = Nation | param2 = {{{nation|}}} | paramname3 = Region | param3 = {{{region|}}} | paramname4 = Size | param4 = {{{size|}}} | paramname5 = Population | param5 = {{{population|}}} | paramname6 = Demographics | param6 = {{{demographics|}}} | paramname7 = Government | param7 = {{{government|}}} | paramname8 = Alignment | param8 = {{{alignment|}}} | paramname9 = Demonym | param9 = {{{natives|}}} | paramname10 = Adjective | param10 = {{{adjective|}}} | paramname11 = Ruler | param11 = {{{ruler|}}} | paramname12 = Leader | param12 = {{{leader|}}} | paramname13 = regionmap | param13 = {{{regionmap|}}} | paramname14 = source | param14 = {{{source|}}} | page = {{{page|}}} }} </pre> The above example is {{tl|City}}. See that template's documentation for details on its usage. {{tl|City}} passes its content to {{tl|Infobox}} through its own defined parameters. When creating an infobox template using {{tl|Infobox/Base}}, you can make a parameter always appear by adding a fallback value. For example, to make the '''region''' parameter above a required or always-appearing parameter, change its '''param''' from {{xt|<nowiki>{{{region|}}}</nowiki>}} to {{xt|<nowiki>{{{region|''required''}}</nowiki>}}.
Summary:
Please note that all contributions to 2d4chan may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
2d4chan:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
Template
Discussion
English
Views
Read
Edit source
View history
More
Search
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Tools
What links here
Related changes
Special pages
Page information