Template:LinkTrek: differenze tra le versioni

Da Wikitrek.
Vai alla navigazione Vai alla ricerca
mNessun oggetto della modifica
Nessun oggetto della modifica
 
(15 versioni intermedie di 2 utenti non mostrate)
Riga 1: Riga 1:
<includeonly>[{{{1}}} ''{{{2}}}''], {{#switch:{{#explode:{{{1}}}|/|2}}
<includeonly>[{{{1}}} ''{{NoWiki|{{{2}}}}}''], {{#switch:{{#explode:{{{1}}}|/|2}}
| treknews.net = TrekNews
| treknews.net = TrekNews
| trekmovie.com = TrekMovie
| trekmovie.com = TrekMovie
| www.ex-astris-scientia.org = Ex Astris Scientia
| www.ex-astris-scientia.org = Ex Astris Scientia
| blog.trekcore.com
| trekcore.com = TrekCore
| intl.startrek.com = StarTrek.com
| www.startrek.com = StarTrek.com
| www.hyperb5.info = Hyper B5
| www.trekships.org = Advanced Starship Design Bureau
| #default = Sconosciuto
| #default = Sconosciuto
}}</includeonly><noinclude>  
}}</includeonly><noinclude>  
Riga 11: Riga 17:
* [http://blog.trekcore.com/2020/02/star-trek-picard-review-the-end-is-the-beginning/ STAR TREK: PICARD Review — “The End is the Beginning”], TrekCore
* [http://blog.trekcore.com/2020/02/star-trek-picard-review-the-end-is-the-beginning/ STAR TREK: PICARD Review — “The End is the Beginning”], TrekCore
-->
-->
Il template riconosce automaticamente:
* treknews.net
* trekmovie.com
* www.ex-astris-scientia.org
* trekcore.com
* StarTrek.com
* hyperb5.info
* www.trekships.org
e intesta il link generico di conseguenza.
Notare che il questo ''template'' usa a sua volta <code>[[:Template:NoWiki|<nowiki>{{NoWiki}}</nowiki>]]</code> per evitare che caratteri appartenenti al ''markup'' wiki possano danneggiare l'etichetta.


== Esempio ==
== Esempio ==
<code><nowiki>{{LinkTrek|https://trekmovie.com/2020/02/06/engage-star-trek-picard-finally-heads-to-the-stars-in-the-end-is-the-beginning-review/|Engage! ‘Star Trek: Picard’ Finally Heads To The Stars In “The End is the Beginning” – REVIEW}}</nowiki></code><br />
{{LinkTrek|https://trekmovie.com/2020/02/06/engage-star-trek-picard-finally-heads-to-the-stars-in-the-end-is-the-beginning-review/|Engage! ‘Star Trek: Picard’ Finally Heads To The Stars In “The End is the Beginning” – REVIEW}}
{{LinkTrek|https://trekmovie.com/2020/02/06/engage-star-trek-picard-finally-heads-to-the-stars-in-the-end-is-the-beginning-review/|Engage! ‘Star Trek: Picard’ Finally Heads To The Stars In “The End is the Beginning” – REVIEW}}
<code><nowiki>{{LinkTrek|https://treknews.net/2020/02/14/review-star-trek-picard-104-absolute-candor/|[REVIEW] STAR TREK: PICARD Episode 4 “Absolute Candor”}}</nowiki></code><br />
{{LinkTrek|https://treknews.net/2020/02/14/review-star-trek-picard-104-absolute-candor/|[REVIEW] STAR TREK: PICARD Episode 4 “Absolute Candor”}}
<code><nowiki>{{LinkTrek|http://www.hyperb5.info/index.php/levittjudy|Judy Levitt}}</nowiki></code><br />
{{LinkTrek|http://www.hyperb5.info/index.php/levittjudy|Judy Levitt}}
== TemplateData ==
<noinclude>
<templatedata>
{
"params": {
"1": {
"aliases": [
"URI",
"link"
],
"label": "Link",
"description": "LInk esterno",
"example": "https://trekmovie.com/2020/10/29/review-star-trek-discovery-returns-to-common-ground-in-people-of-earth/",
"type": "url",
"required": true
},
"2": {
"aliases": [
"Titolo",
"descrizione"
],
"label": "Titolo",
"description": "Il titolo del link",
"example": "Review: ‘Star Trek: Discovery’ Returns To Common Ground In “People Of Earth”",
"type": "string",
"required": true
}
},
"description": "Prepara i link esterni partendo dall'URL e dalla descrizione, generando automaticamente la fonte in base al dominio."
}
</templatedata>
</noinclude>

Versione attuale delle 23:46, 3 mar 2024

Il template riconosce automaticamente:

  • treknews.net
  • trekmovie.com
  • www.ex-astris-scientia.org
  • trekcore.com
  • StarTrek.com
  • hyperb5.info
  • www.trekships.org

e intesta il link generico di conseguenza.

Notare che il questo template usa a sua volta {{NoWiki}} per evitare che caratteri appartenenti al markup wiki possano danneggiare l'etichetta.

Esempio

{{LinkTrek|https://trekmovie.com/2020/02/06/engage-star-trek-picard-finally-heads-to-the-stars-in-the-end-is-the-beginning-review/|Engage! ‘Star Trek: Picard’ Finally Heads To The Stars In “The End is the Beginning” – REVIEW}}
Engage! ‘Star Trek: Picard’ Finally Heads To The Stars In “The End is the Beginning” – REVIEW, TrekMovie

{{LinkTrek|https://treknews.net/2020/02/14/review-star-trek-picard-104-absolute-candor/|[REVIEW] STAR TREK: PICARD Episode 4 “Absolute Candor”}}
[REVIEW] STAR TREK: PICARD Episode 4 “Absolute Candor”, TrekNews

{{LinkTrek|http://www.hyperb5.info/index.php/levittjudy|Judy Levitt}}
Judy Levitt, Hyper B5

TemplateData

Prepara i link esterni partendo dall'URL e dalla descrizione, generando automaticamente la fonte in base al dominio.

Parametri template

ParametroDescrizioneTipoStato
Link1 URI link

LInk esterno

Esempio
https://trekmovie.com/2020/10/29/review-star-trek-discovery-returns-to-common-ground-in-people-of-earth/
URLobbligatorio
Titolo2 Titolo descrizione

Il titolo del link

Esempio
Review: ‘Star Trek: Discovery’ Returns To Common Ground In “People Of Earth”
Stringaobbligatorio