1,492
edits
Wil Ukinix (talk | contribs) m (→Sim with no ship or installation: Removed "SD" text from example) |
Wil Ukinix (talk | contribs) (added REFNAME parameter) |
||
Line 12: | Line 12: | ||
|, SD{{{STARDATE}}} | |, SD{{{STARDATE}}} | ||
| | | | ||
}} | name="{{{SIMTITLE}}}" }}</includeonly><noinclude> | }} | name="{{#if: {{{REFNAME|}}} | ||
|{{{REFNAME}}} | |||
|{{{SIMTITLE}}} | |||
}}" }}</includeonly><noinclude> | |||
==Usage== | ==Usage== | ||
Creates a standardised wiki reference tag ("<ref>") to your sim. | Creates a standardised wiki reference tag ("<ref>") to your sim. | ||
<pre> | <pre> | ||
{{SimRef | SIMLINK=<URL to your sim> | CHARACTERS=<the character name(s)> | SIMTITLE=<title of the sim> | SHIP=<the name of the ship or installation> | STARDATE=<relevant stardate for the sim>}} | {{SimRef | SIMLINK=<URL to your sim> | CHARACTERS=<the character name(s)> | SIMTITLE=<title of the sim> | SHIP=<the name of the ship or installation> | STARDATE=<relevant stardate for the sim> | REFNAME=<name for the reference>}} | ||
</pre> | </pre> | ||
The <ref> tag will be named using the title of the sim. That allows you to make multiple attributions to the same reference in one wiki page ([[#Multiple attributions to the same sim reference|see example below]]). | The <ref> tag will be named using the title of the sim, unless you specify a value for the REFNAME parameter. That allows you to make multiple attributions to the same reference in one wiki page ([[#Multiple attributions to the same sim reference|see example below]]). | ||
Line 29: | Line 32: | ||
* '''SHIP''': The ship or installation that the character is from, or the sim relates to. This parameter is optional. | * '''SHIP''': The ship or installation that the character is from, or the sim relates to. This parameter is optional. | ||
* '''STARDATE''': The relevant stardate for the sim. This parameter is optional. | * '''STARDATE''': The relevant stardate for the sim. This parameter is optional. | ||
* '''REFNAME''': A shorthand name for the ref tag. This parameter is optional. If not specified, SIMTITLE is used for the name of the ref. | |||
== Examples == | == Examples == | ||
Line 35: | Line 39: | ||
=== A complete reference to a sim === | === A complete reference to a sim === | ||
An example of every template parameter being used. | An example of every template parameter being used. | ||
<pre> | |||
Perfect for analysts, officers, and administrative personnel alike{{SimRef | SIMLINK=https://groups.google.com/g/sb118-amity/c/VddlJAiFJ2I/m/yADaiqlHDwAJ | CHARACTERS=Crewman [[Annamae Barberra]] | SIMTITLE=Emissary in Leather | SHIP=[[Amity Outpost]] | STARDATE=239905.07 | REFNAME="Leather"}}. | |||
</pre> | |||
Perfect for analysts, officers, and administrative personnel alike{{SimRef | SIMLINK=https://groups.google.com/g/sb118-amity/c/VddlJAiFJ2I/m/yADaiqlHDwAJ | CHARACTERS=Crewman [[Annamae Barberra]] | SIMTITLE=Emissary in Leather | SHIP=[[Amity Outpost]] | STARDATE=239905.07 | REFNAME="Leather"}}. | |||
=== Reference to a sim without a ref name === | |||
An example of every template parameter being used except for REFNAME. The title of the sim will is used for the name of the reference. | |||
<pre> | <pre> | ||
Perfect for analysts, officers, and administrative personnel alike{{SimRef | SIMLINK=https://groups.google.com/g/sb118-amity/c/VddlJAiFJ2I/m/yADaiqlHDwAJ | CHARACTERS=Crewman [[Annamae Barberra]] | SIMTITLE=Emissary in Leather | SHIP=[[Amity Outpost]] | STARDATE=239905.07}}. | Perfect for analysts, officers, and administrative personnel alike{{SimRef | SIMLINK=https://groups.google.com/g/sb118-amity/c/VddlJAiFJ2I/m/yADaiqlHDwAJ | CHARACTERS=Crewman [[Annamae Barberra]] | SIMTITLE=Emissary in Leather | SHIP=[[Amity Outpost]] | STARDATE=239905.07}}. |