Template:Semantic Forms URL demo: Difference between revisions

The educational technology and digital learning wiki
Jump to navigation Jump to search
No edit summary
 
mNo edit summary
 
(38 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>
<noinclude>
This is the "Semantic Forms URL demo" template.
This is the "Semantic Forms URL demo" template. Please '''do not create new instances of this template. It is just a demo !
 
See also:
* [[Semantic Forms URL demo test]] The instance of this template.
* [[Form:Semantic Forms URL demo]]
* The article [[Semantic Forms]]
 
It should be called in the following format:
It should be called in the following format:
<pre>
<pre>
{{Semantic Forms URL demo
{{Semantic Forms URL demo
|f_URL_link_text=
|f_URL_link_text=
|f_URL=
|f_URL_free_string=
|f_URL_free_string=
|f_URL_string_URL_input=
|f_URL_string_URL_input=
|f_URL=
|f_link_wiki_format=
|f_link_wiki_format=
}}
}}
Line 13: Line 19:
Edit the page to see the template text.
Edit the page to see the template text.
</noinclude><includeonly>{| class="wikitable"
</noinclude><includeonly>{| class="wikitable"
! f_URL_link_text
! Template parameter name !! Property data type !! form input type !! Result
|-
! f_URL_link_text || string || default
|  [[Has URL link text::{{{f_URL_link_text|}}}]]  
|  [[Has URL link text::{{{f_URL_link_text|}}}]]  
|-
|-
! f_URL_free_string
! f_URL || URL || Default
|  [[Has URL::{{{f_URL|}}}]]
|-
! f_URL_free_string || string || default
|  [[Has URL location string::{{{f_URL_free_string|}}}]]  
|  [[Has URL location string::{{{f_URL_free_string|}}}]]  
|-
|-
! f_URL_string_URL_input
! f_URL_string_URL_input || string || regexp
|  [[Has URL location string::{{{f_URL_string_URL_input|}}}]]  
|  [[Has URL location string::{{{f_URL_string_URL_input|}}}]]  
|-
|-
! f_URL
! f_Wiki_formatted_link || string || default
|  [[Has URL::{{{f_URL|}}}]]  
|  [[Has URL in wiki format::{{{f_link_wiki_format|}}}]]
|}
 
Location/link text combinations (good, bad and ugly ...)
{| class="wikitable"
! Source !! Result !! Works
|-
| <source lang="bibtex">[{{{f_URL_free_string|}}} {{{f_URL_link_text|}}}] </source> || [{{{f_URL_free_string|}}} {{{f_URL_link_text|}}}] || ok, no semantics
|-
| <source lang="bibtex">[{{{f_URL_string_URL_input|}}} {{{f_URL_link_text|}}}] </source> || [{{{f_URL_free_string|}}} {{{f_URL_link_text|}}}] || ok, no semantics
|-
| <source lang="bibtex">[{{{f_URL|}}} {{{f_URL_link_text|}}}] </source> || [{{{f_URL|}}} {{{f_URL_link_text|}}}] || ok, no semantics
|-
| <source lang="bibtex">{{{f_URL|web page}}}</source> || {{{f_URL|web page}}} || not ok, no semantics
|-
| <source lang="bibtex">[[Has URL::{{{f_URL|web page}}}]]</source> ||[[Has URL::{{{f_URL|web page}}}]] || not ok, no semantics
|-
| <source lang="bibtex">[[Has URL::{{{f_URL|}}}|web page]]</source> ||[[Has URL::{{{f_URL|}}}|web page]]|| ok, one missing property
|-
| <source lang="bibtex">[[Has URL::{{{f_URL|}}}| {{{f_URL_link_text|}}}]]</source> || [[Has URL::{{{f_URL|}}}| {{{f_URL_link_text|}}}]] || ok, but one missing property
|-
| <source lang="bibtex">[[[Has URL::{{{f_URL|}}}]] [[Has URL link text::{{{f_URL_link_text|}}}]]]</source> ||[[[Has URL::{{{f_URL|}}}]] [[Has URL link text::{{{f_URL_link_text|}}}]]] || bad
|-
| <source lang="bibtex" enclose="div">[[Has URL::{{{f_URL|}}}| {{{f_URL_link_text|}}}]] <span style="display:none">[[Has URL link text::{{{f_URL_link_text|}}}]] </span></source> || [[Has URL::{{{f_URL|}}}| {{{f_URL_link_text|}}}]] <span style="display:none">[[Has URL link text::{{{f_URL_link_text|}}}]]</span> || ok, but relies on CSS
|-
|-
! f_link_wiki_format
| <source lang="bibtex" enclose="div">
| [[Has URL in wiki format::{{{f_link_wiki_format|}}}]]
{{#set:Has URL={{{f_URL|}}} }}
{{#set:Has URL link text={{{f_URL_link_text|}}} }}
[{{{f_URL}}} {{{f_URL_link_text}}}]</source>
| {{#set:Has URL={{{f_URL|}}} }}
{{#set:Has URL link text={{{f_URL_link_text|}}} }}
[{{{f_URL}}} {{{f_URL_link_text}}}]
| best solution (thanx to Yaron Koren)
|}
|}


[[Category:Semantic Forms URL demo]]
[[Category:Semantic Forms URL demo]]
</includeonly>
</includeonly>

Latest revision as of 21:20, 18 July 2013

This is the "Semantic Forms URL demo" template. Please do not create new instances of this template. It is just a demo !

See also:

It should be called in the following format:

{{Semantic Forms URL demo
|f_URL_link_text=
|f_URL=
|f_URL_free_string=
|f_URL_string_URL_input=
|f_link_wiki_format=
}}

Edit the page to see the template text.