Template:Mission Briefing: Difference between revisions

From Unofficial Homecoming Wiki
Jump to navigation Jump to search
m (Fixed image replacement parameter.)
m (suppress blockquote border and padding in some skins)
 
(7 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<div style="float: left; width: 60px; text-align: center;">{{#if:{{{Image|}}}|[[Image:{{{Image}}}|{{{Size|48px}}}]]|{{#ifexist:Image:Contact Small {{{Contact}}}.jpg|[[Image:Contact Small {{{Contact}}}.jpg|48px]]|{{#ifexist:Image:Contact Small {{{Contact}}}.png|[[Image:Contact Small {{{Contact}}}.png|48px]]|[[Image:Badge question mark.png]]}}}}}}<br /><small>{{#if:{{{ContactLink|}}}|[[{{{ContactLink}}}{{!}}{{{Contact}}}]]|{{linkifexists|{{{Contact}}}}}}}</small></div>
<div role="figure" aria-labelledby="mission-briefing-{{anchorencode:{{{Contact}}}}}" style="display: flex;">
<div style="margin-left: 70px;">
{{#if:{{{Text|}}}|'''{{{Type|Briefing}}}'''


{{{Text}}}}}{{#if:{{{Brief|}}}|'''Briefing'''
<div style="flex: none; width: 6em; text-align: center; font-size: smaller;"><div>{{#if:{{{Image|}}}|[[File:{{{Image}}}|{{{Size|48px}}}|link=|alt=]]|{{#ifexist:File:Contact Small {{{Contact}}}.jpg|[[File:Contact Small {{{Contact}}}.jpg|48px|link=|alt=]]|[[File:Badge question mark.png|link=|alt=]]}}}}</div>{{#if:{{{ContactLink|}}}|[[{{{ContactLink}}}|<span id="mission-briefing-{{anchorencode:{{{Contact}}}}}" style="padding-top: {{#expr:{{{Size|48}}}+2}}px;">{{{Contact}}}</span>]]|{{linkifexists|page={{{Contact}}}|name=<span id="mission-briefing-{{anchorencode:{{{Contact}}}}}" style="padding-top: {{#expr:{{{Size|48}}}+2}}px;">{{{Contact}}}</span>}}}}</div>


{{{Brief}}}}}{{#if:{{{Debrief|}}}|
<div style="margin-left: 0.5em;">
'''Debriefing'''
{{#if:{{{Text|}}}|


{{{Debrief}}}}}{{#if:{{{Accept|}}}|<br /><br />'''Mission Acceptance'''
<div style="font-weight: bold;">{{{Type|Briefing}}}</div>


{{{Accept}}}}}{{#if:{{{TeamReq|}}}|<br /><br />'''Team Requirement Restriction'''
<blockquote style="margin: 1em 0; border: 0; padding: 0;">
{{{Text}}}
</blockquote>


{{{TeamReq}}}}}{{#if:{{{Solicit|}}}|<br /><br />'''Unnecessary Solicitation'''
}}{{#if:{{{Brief|}}}|
<div style="font-weight: bold;">Briefing</div>


{{{Solicit}}}}}
<blockquote style="margin: 0; border: 0; padding: 0;">
</div>
{{{Brief}}}
{{clr|left}}<noinclude>
</blockquote>
{{Documentation|content=
 
Format Option 1: '''<nowiki>{{Mission Briefing|Type=|Contact=|Text=}}</nowiki>'''
}}{{#if:{{{Debrief|}}}|
 
<div style="font-weight: bold;">Debriefing</div>
 
<blockquote style="margin: 0;">
{{{Debrief}}}
</blockquote>
 
}}{{#if:{{{Accept|}}}|
 
<div style="font-weight: bold;">Mission Acceptance</div>


Format Option 2: '''<nowiki>{{Mission Briefing|Contact=|Brief=|Accept=|TeamReq=|Solicit=}}</nowiki>'''
<blockquote style="margin: 0;">
{{{Accept}}}
</blockquote>


Format Option 3: '''<nowiki>{{Mission Briefing|Contact=|Debrief=}}</nowiki>'''
}}{{#if:{{{TeamReq|}}}|


* '''Type''' is the the type of information communicated (Briefing/Debriefing/Threat of DOOOMM!!!1!).  This option can be left out, and will default to "Briefing" if the Text parameter is in use.
<div style="font-weight: bold;">Team Requirement Restriction</div>
* '''Contact''' is the contact that gives the info
* '''Text''' is the information the contact delivers.  This was originally the only text parameter in the template, but can now be replaced with a combination of the following options.
* '''Brief''' is the information a contact gives you prior to accepting the mission.
* '''Accept''' is the information a contact gives you immediately following mission acceptance.
* '''TeamReq''' is the information a contact gives you concerning any team restrictions (i.e. when a TF/SF contact tells you that all members of your team must be in the zone before you may begin or one or more team members are not a high enough level.)
* '''Solicit''' is the information a contact gives you if you solicit them after mission acceptance and before completion.
* '''Debrief''' is the information a contact gives you after mission completion.
* '''Image''' is an option that allows an editor to specify an image name that may not match the name of the contact.
* '''Size''' alters the size of the image used with '''Image''' (above).  This parameter has no effect if '''Image''' is not used.
Example:
<nowiki>{{Mission Briefing|Type=Briefing|Contact=Scirocco|Text=Greetings.  There is much work to be done.}}</nowiki>


{{Mission Briefing|Type=Briefing|Contact=Scirocco|Text=Greetings.  There is much work to be done.}}
<blockquote style="margin: 0;">
{{{TeamReq}}}
</blockquote>


In addition, there is an optional '''ContactLink''' parameter that allows linking to a page other than the exact name of the Contact.  For example, when documenting a briefing from the ally named Faultline, the link will point to the page for the zone named [[Faultline]] by default.  Adding the ContactLink parameter allows that link to be pointed at [[Faultline (Ally)]] instead, while still correctly referencing the proper small contact image.
}}{{#if:{{{Solicit|}}}|


Example:
<div style="font-weight: bold;">Unnecessary Solicitation</div>
<nowiki>{{Mission Briefing|Type=Briefing|Contact=Faultline|ContactLink=Faultline (Ally)|Text=We need to rescue Fusionette... again.}}</nowiki>


{{Mission Briefing|Type=Briefing|Contact=Faultline|ContactLink=Faultline (Ally)|Text=We need to rescue Fusionette... again.}}
<blockquote style="margin: 0;">
{{{Solicit}}}
</blockquote>


}}
</div>


[[Category:Mission Templates]]
</div><noinclude>{{Documentation}}</noinclude>
}}</noinclude>

Latest revision as of 02:54, 5 February 2024

{{{Contact}}}
[edit] [purge] Documentation

Format Option 1: {{Mission Briefing|Type=|Contact=|Text=}}

Format Option 2: {{Mission Briefing|Contact=|Brief=|Accept=|TeamReq=|Solicit=}}

Format Option 3: {{Mission Briefing|Contact=|Debrief=}}

  • Type is the the type of information communicated (Briefing/Debriefing/Threat of DOOOMM!!!1!). This option can be left out, and will default to "Briefing" if the Text parameter is in use.
  • Contact is the contact that gives the info
  • Text is the information the contact delivers. This was originally the only text parameter in the template, but can now be replaced with a combination of the following options.
  • Brief is the information a contact gives you prior to accepting the mission.
  • Accept is the information a contact gives you immediately following mission acceptance.
  • TeamReq is the information a contact gives you concerning any team restrictions (i.e. when a TF/SF contact tells you that all members of your team must be in the zone before you may begin or one or more team members are not a high enough level.)
  • Solicit is the information a contact gives you if you solicit them after mission acceptance and before completion.
  • Debrief is the information a contact gives you after mission completion.
  • Image is an option that allows an editor to specify an image name that may not match the name of the contact.
  • Size alters the size of the image used with Image (above). This parameter has no effect if Image is not used.

Example:

{{Mission Briefing|Type=Briefing|Contact=Scirocco|Text=Greetings.  There is much work to be done.}}
Briefing

Greetings. There is much work to be done.

In addition, there is an optional ContactLink parameter that allows linking to a page other than the exact name of the Contact. For example, when documenting a briefing from the ally named Faultline, the link will point to the page for the zone named Faultline by default. Adding the ContactLink parameter allows that link to be pointed at Faultline (Ally) instead, while still correctly referencing the proper small contact image.

Example:

{{Mission Briefing|Type=Briefing|Contact=Faultline|ContactLink=Faultline (Ally)|Text=We need to rescue Fusionette... again.}}
Briefing

We need to rescue Fusionette... again.