Template:GR Location of link: Difference between revisions
m (Text replacement - "FindMyPast" to "Findmypast") |
No edit summary |
||
(5 intermediate revisions by 2 users not shown) | |||
Line 2: | Line 2: | ||
{{#if: {{{Website|}}}| | {{#if: {{{Website|}}}| | ||
{{#switch: {{lc:{{{Website|}}}}}| | {{#switch: {{lc:{{{Website|}}}}}| | ||
familysearch= at FamilySearch| | familysearch= at FamilySearch|findmypast= at FindMyPast ($)| | ||
ancestry= at Ancestry ($) | |||
findmypast= at | |<nowiki></nowiki>}} | ||
|<nowiki></nowiki>}}<noinclude> | |||
ancestry= at Ancestry ($) | |||
<nowiki></nowiki>}}| | |||
<nowiki></nowiki>}}<noinclude> | |||
example: | example: | ||
<nowiki> | <nowiki> | ||
{{GR Location of link| | {{GR Location of link| | ||
Website={{{Website 1}}} | Website={{{Website 1}}} | ||
|}} | |}}</nowiki> | ||
</nowiki> | |||
This template will take the website information it receives then, based on that site, determine if the user needs to be logged in, and/or have the correct account to view the information in the link, and/or whether the site will cost money to view (adding a ($) sign). If the user needs to be logged in, a message will be sent to the user. Once logged in, if it is determined that the website will cost money, a ($) will be placed after the website location. | This template will take the website information it receives then, based on that site, determine if the user needs to be logged in, and/or have the correct account to view the information in the link, and/or whether the site will cost money to view (adding a ($) sign). If the user needs to be logged in, a message will be sent to the user. Once logged in, if it is determined that the website will cost money, a ($) will be placed after the website location. | ||
</noinclude> |
Revision as of 12:52, 13 June 2018
example:
{{GR Location of link| Website={{{Website 1}}} |}}
This template will take the website information it receives then, based on that site, determine if the user needs to be logged in, and/or have the correct account to view the information in the link, and/or whether the site will cost money to view (adding a ($) sign). If the user needs to be logged in, a message will be sent to the user. Once logged in, if it is determined that the website will cost money, a ($) will be placed after the website location.