Difference between revisions of "Template:FHL"

From FamilySearch Wiki
Jump to: navigation, search
(Undo test)
(Simplify)
Line 1: Line 1:
 
<includeonly>{{#if: {{{1|}}} | <!--
 
<includeonly>{{#if: {{{1|}}} | <!--
 
-->{{#ifeq: {{{test|}}} | new | <!--
 
-->{{#ifeq: {{{test|}}} | new | <!--
  -->{{#ifeq: {{{2}}} | book | <!--
+
{{#switch: {{{2}}}
       -->[http://fsbeta.familysearch.org/s/search/index/catalog-search#searchType=catalog&filtered=true&collectionId=&fed=false&page=1&catSearchType=call_number&searchCriteria={{#replace:{{{1}}}| |+}}&author_givenName=&author_surname= FHL {{{1}}}] | <!--
+
  | book | callno | call_number =
      -->{{#ifeq: {{{2}}} | film | <!--
+
       [http://fsbeta.familysearch.org/s/search/index/catalog-search#searchType=catalog&filtered=true&collectionId=&fed=false&page=1&catSearchType=call_number&searchCriteria={{#replace:{{{1}}}| |+}}&author_givenName=&author_surname= FHL {{{1}}}]
        -->[http://fsbeta.familysearch.org/s/search/index/catalog-search#searchType=catalog&filtered=true&fed=false&collectionId=&catSearchType=film_number&searchCriteria={{#replace:{{{1}}}| |+}}&author_givenName=&author_surname= FHL {{{1}}}] | <!--
+
  | film | filmno | film_number =
        -->{{#ifeq: {{{2}}} | item | <!--
+
      [http://fsbeta.familysearch.org/s/search/index/catalog-search#searchType=catalog&filtered=true&fed=false&collectionId=&catSearchType=film_number&searchCriteria={{#replace:{{{1}}}| |+}}&author_givenName=&author_surname= FHL {{{1}}}]
            -->[http://fsbeta.familysearch.org/s/catalog/show?uri=http%3A%2F%2Fcatalog-search-api%3A8080%2Fwww-catalogapi-webservice%2Fitem%2F{{#replace:{{{1}}}| |+}}&hash=rh2%252B403z7n4WII67nHOFMh25nvE%253D FHL Collection] | <!--
+
  | item | titleno | title-id =
            -->{{#ifeq: {{{2}}} | title-id | <!--
+
      [http://fsbeta.familysearch.org/s/catalog/show?uri=http%3A%2F%2Fcatalog-search-api%3A8080%2Fwww-catalogapi-webservice%2Fitem%2F{{#replace:{{{1}}}| |+}}&hash=rh2%252B403z7n4WII67nHOFMh25nvE%253D FHL Collection]
              -->[http://fsbeta.familysearch.org/s/catalog/show?uri=http%3A%2F%2Fcatalog-search-api%3A8080%2Fwww-catalogapi-webservice%2Fitem%2F{{#replace:{{{1}}}| |+}}&hash=rh2%252B403z7n4WII67nHOFMh25nvE%253D FHL Collection] | <!--
+
  | subject-num | subject_id =
              -->{{#ifeq: {{{2}}} | subject-num | <!--
+
      [http://beta.familysearch.org/s/search/index/catalog-search#searchType=catalog&filtered=true&collectionId=&fed=false&page=1&catSearchType=subject_id&searchCriteria={{#replace:{{{1}}}| |+}}&author_givenName=&author_surname= FHL Subject#{{{1}}}]
                  -->[http://beta.familysearch.org/s/search/index/catalog-search#searchType=catalog&filtered=true&collectionId=&fed=false&page=1&catSearchType=subject_id&searchCriteria={{#replace:{{{1}}}| |+}}&author_givenName=&author_surname= FHL Subject#{{{1}}}] | <!--
+
  | authorno | author-num | author_id =
                  -->{{#ifeq: {{{2}}} | author-num | <!--
+
      [http://beta.familysearch.org/s/search/index/catalog-search#searchType=catalog&filtered=true&collectionId=&fed=false&page=1&catSearchType=author_id&searchCriteria={{#replace:{{{1}}}| |+}}&author_givenName=&author_surname= FHL Author#{{{1}}}]
                    -->[http://beta.familysearch.org/s/search/index/catalog-search#searchType=catalog&filtered=true&collectionId=&fed=false&page=1&catSearchType=author_id&searchCriteria={{#replace:{{{1}}}| |+}}&author_givenName=&author_surname= FHL Author#{{{1}}}] | <!--
+
  | keyword | keywords =
                    -->{{#ifeq: {{{2}}} | keyword | <!--
+
      [http://beta.familysearch.org/s/search/index/catalog-search#searchType=catalog&filtered=true&fed=false&collectionId=&catSearchType=keywords&searchCriteria={{#replace:{{{1}}}| |+}}&author_givenName=&author_surname= FHL Keyword]
                        -->[http://beta.familysearch.org/s/search/index/catalog-search#searchType=catalog&filtered=true&fed=false&collectionId=&catSearchType=keywords&searchCriteria={{#replace:{{{1}}}| |+}}&author_givenName=&author_surname= FHL Keyword] | <!--
+
  | title =
                        -->{{#ifeq: {{{2}}} | title | <!--
+
      [http://beta.familysearch.org/s/search/index/catalog-search#searchType=catalog&filtered=true&fed=false&collectionId=&catSearchType=title&searchCriteria={{#replace:{{{1}}}| |+}}&author_givenName=&author_surname= FHL Title]
                          -->[http://beta.familysearch.org/s/search/index/catalog-search#searchType=catalog&filtered=true&fed=false&collectionId=&catSearchType=title&searchCriteria={{#replace:{{{1}}}| |+}}&author_givenName=&author_surname= FHL Title] | <!--
+
  | subject =
                          -->{{#ifeq: {{{2}}} | subject | <!--
+
      [http://beta.familysearch.org/s/search/index/catalog-search#searchType=catalog&filtered=true&collectionId=&fed=false&page=1&catSearchType=subject&searchCriteria={{#replace:{{{1}}}| |+}}&author_givenName=&author_surname= FHL Subject]
                              -->[http://beta.familysearch.org/s/search/index/catalog-search#searchType=catalog&filtered=true&collectionId=&fed=false&page=1&catSearchType=subject&searchCriteria={{#replace:{{{1}}}| |+}}&author_givenName=&author_surname= FHL Subject] | <!--
+
  | #default = <!--
                              INVALID or UNSPECIFIED TYPE-->{{#if: {{#pos:{{{1}}}| }} | <!--
+
      INVALID or UNSPECIFIED TYPE-->{{#if: {{#pos:{{{1}}}| }} | <!--
                                Book contain a space-->[http://fsbeta.familysearch.org/s/search/index/catalog-search#searchType=catalog&filtered=true&collectionId=&fed=false&page=1&catSearchType=call_number&searchCriteria={{#replace:{{{1}}}| |+}}&author_givenName=&author_surname= FHL {{{1}}}] | <!--
+
        Book contain a space-->[http://fsbeta.familysearch.org/s/search/index/catalog-search#searchType=catalog&filtered=true&collectionId=&fed=false&page=1&catSearchType=call_number&searchCriteria={{#replace:{{{1}}}| |+}}&author_givenName=&author_surname= FHL {{{1}}}] | <!--
                                Otherwise it is a film-->[http://fsbeta.familysearch.org/s/search/index/catalog-search#searchType=catalog&filtered=true&fed=false&collectionId=&catSearchType=film_number&searchCriteria={{#replace:{{{1}}}| |+}}&author_givenName=&author_surname= FHL {{{1}}}] <!--
+
        Otherwise it is a film-->[http://fsbeta.familysearch.org/s/search/index/catalog-search#searchType=catalog&filtered=true&fed=false&collectionId=&catSearchType=film_number&searchCriteria={{#replace:{{{1}}}| |+}}&author_givenName=&author_surname= FHL {{{1}}}]
                                -->}} <!--
+
      }}
                              -->}} <!--
+
}}--> | <!--
                          -->}} <!--
 
                        -->}} <!--
 
                    -->}} <!--
 
                  -->}} <!--
 
              -->}} <!--
 
            -->}} <!--
 
        -->}} <!--
 
      -->}} <!--
 
--> | <!--
 
 
   -->{{#ifeq: {{{2}}} | book | <!--
 
   -->{{#ifeq: {{{2}}} | book | <!--
 
       -->[http://www.familysearch.org/eng/library/fhlcatalog/supermainframeset.asp?display=titlehitlist&columns=*,0,0&callno={{#replace:{{{1}}}| |+}} FHL {{{1}}}] | <!--
 
       -->[http://www.familysearch.org/eng/library/fhlcatalog/supermainframeset.asp?display=titlehitlist&columns=*,0,0&callno={{#replace:{{{1}}}| |+}} FHL {{{1}}}] | <!--

Revision as of 05:31, 3 October 2010

[view] [edit] [history] [purge] Documentation icon Template documentation